package com.cps.match.service;

import com.cps.match.service.impl.ConfigurationApp;
import com.cps.match.service.impl.MatchEnquiryServiceImpl;

/**
 * MatchEnquiryService factory
 * 
 * @author tue.dang
 * 
 */
public class MatchEnquiryServiceFactory {
	private static final String END_POINT= ConfigurationApp.getKey("match.endpoint.url");
	private static final String APPLICATION_ID = ConfigurationApp.getKey("application.id");

	/**
	 * Very simple factory, can be changed later for more flexible parameter
	 * (security, url, etc...)
	 * 
	 * @return {@link MatchEnquiryService}
	 */
	public static MatchEnquiryService getDefaultInstance() {
		return new MatchEnquiryServiceImpl(APPLICATION_ID, END_POINT);
	}

}
